home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
pw_10a.zip
/
PPEWHO.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-06-22
|
2KB
|
157 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
String STRING001
String STRING002
String STRING003
;------------------------------------------------------------------------------
WrUNet PcbNode(), UN_Stat(), UN_Name(), UN_City(), "Running program [" + PPEName() + ".PPE]", ""
Log "Transfer Summary Scanner (" + PPEName() + ".PPE) " + "at (" + Left(Time(), 5) + ")", 0
GetToken STRING003
If (STRING003 == "") Then
Newline
PrintLn "This program will scan the system download/upload log file and list all entries"
PrintLn "that mention a specific keyword. You may select any full filename for scanning"
PrintLn "or the search is done based on matching keywords (like the Zippy scan function)"
PrintLn
PrintLn "These searches can take a few minutes to complete, so please be patient!"
InputStr "Enter the Text to Search for (@X0FEnter@X0E)=none", STRING002, 14, 36, Mask_Ascii(), 2 + 4 + 8 + 128 + 256
STRING002 = Upper(STRING002)
If (STRING002 == "") Stop
Else
STRING002 = Upper(STRING003)
Endif
If (Exist(ReadLine(PCBDat(), 46))) Then
Log "Searching for (" + STRING002 + ") ...", 0
Newline
PrintLn "@X0ESearching for (@X0F" + STRING002 + "@X0E) ..."
Newline
Print "@X0ARemember you may cancel the search at anytime by pressing @X0FCTRL-K @X0A... "
FOpen 1, ReadLine(PCBDat(), 46), 0, 0
:LABEL001
If (Ferr(1)) Goto LABEL002
FGet 1, STRING001
If (STRING001 <> "") Then
INTEGER002 = INTEGER002 + 1
STRING001 = Upper(STRING001)
If (InStr(STRING001, STRING002)) Then
INTEGER003 = INTEGER003 + 1
INTEGER001 = InStr(STRING001, STRING002)
If (INTEGER003 == 1) Newlines 2
Print "@X0F" + Left(STRING001, INTEGER001 - 1) + "@X74" + STRING002 + "@X0F"
PrintLn Mid(STRING001, INTEGER001 + Len(STRING002), Len(STRING001) - INTEGER001 - Len(STRING002))
Endif
Endif
If (Abort()) FClose 1
Goto LABEL001
:LABEL002
FClose 1
Else
Newline
Log Upper(ReadLine(PCBDat(), 46)) + ") is missing!", 0
Print "@X0C(" + Upper(ReadLine(PCBDat(), 46)) + ") is missing!"
Endif
ResetDisp
Newline
If (INTEGER003 == 0) Newline
PrintLn "@X0E" + String(INTEGER002) + " entries scanned, " + String(INTEGER003) + " matches."
Newline
Wait
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 1 Wait
; 8 Goto
; 6 Let
; 3 Print
; 8 PrintLn
; 9 If
; 1 FOpen
; 2 FClose
; 1 FGet
; 1 ResetDisp
; 3 Log
; 1 InputStr
; 7 Newline
; 1 Newlines
; 1 GetToken
; 1 Stop
; 1 WrUNet
;
;
; ■ Functions used :
;
; 29 +
; 3 -
; 4 ==
; 1 <>
; 5 !
; 3 Len(
; 5 Upper()
; 1 Mid()
; 2 Left()
; 1 Ferr()
; 2 InStr()
; 1 Abort()
; 1 Time()
; 2 String()
; 1 Mask_Ascii()
; 4 PCBDat()
; 1 PcbNode()
; 4 ReadLine()
; 1 UN_Stat()
; 1 UN_Name()
; 1 UN_City()
; 1 Exist()
; 2 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------